package everyday.m20230309;

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.util.Arrays;

/**
 * 题2469. 温度转换
 */
public class Q20230321 {

    public double[] convertTemperature(double celsius) {
        return new double[]{celsius + 273.15, celsius * 1.80 + 32.00};
    }

    public static void main(String[] args) {
        Q20230321 q20230321 = new Q20230321();
        System.out.println(Arrays.toString(q20230321.convertTemperature(36.50)));
        System.out.println(Arrays.toString(q20230321.convertTemperature(122.11)));
    }
}
